package com.good.shopping.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.good.common.utils.PageUtils;
import com.good.shopping.order.entity.OrderEntity;
import com.good.shopping.order.vo.OrderConfirmVo;
import com.good.shopping.order.vo.OrderSubmitVo;
import com.good.shopping.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author yan
 * @email 821521880@qq.com
 * @date 2022-01-29 11:49:51
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 订单确认页返回需要用到的数据
     * @return
     */
    OrderConfirmVo confirmOrder() throws Exception;


    /**
     * 创建订单
     * @param vo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    // 测试分布式事务
    void doTestSeata();

}

